package com.mujie.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class AroundRunning implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("为启动做准备...");
        Object result = methodInvocation.proceed();
        System.out.println("需要休息...");
        return result;
    }
}
